﻿using System;
using System.IO;

namespace common
{
    public class add
    {
        public string filename = "";
        public string filepath = "";

        public virtual string init_string()
        {
            throw new System.NotImplementedException();
        }

        public virtual void create_file(string path)
        {
            throw new System.NotImplementedException();
        }

        public virtual string get_filename(string kuozhan)
        {
            string strFileName = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss").Replace(":", "");
            filename = strFileName + kuozhan;
            return filename;
        }

        public virtual string get_filepath(string path)
        {
            filepath = Path.Combine(path, get_filename(".txt"));
            return filepath;
        }

        public string path()
        {
            throw new System.NotImplementedException();
        }
    }
}